<?php

namespace App\Http\Controllers\View;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Facades\Services\DoctorService;

class DoctorController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        return view('pages.index',[
            'doctor' => DoctorService::getDoctor()
        ]);
    }

    public function defeated(){
        return view('pages.defeated');
    }

    public function erweima(){
        return view('pages.doctor.erweima',[
            'qrcode' => DoctorService::getErweima()
        ]);
    }

    public function info(Request $request){

        return view('pages.doctor.info',[
            'doctor' => DoctorService::getDoctor()
        ]);
    }
}
